﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 房间权限组ID
    /// </summary>
    public enum RoomGroupType : int
    {
        /// <summary>
        /// 未知类型
        /// </summary>
        UnKnow = -1,

        /// <summary>
        /// 临时游客
        /// </summary>
        Guest = 0,

        /// <summary>
        /// 房间游客(正常用户)
        /// </summary>
        Normal = 1,

        /// <summary>
        /// 房间临时管理员
        /// </summary>
        TempAdmin = 2,

        /// <summary>
        /// 房间管理员
        /// </summary>
        RoomAdmin = 3,

        /// <summary>
        /// 超级管理员(超管)
        /// </summary>
        SuperAdmin = 4,

        /// <summary>
        /// 房间拥有者(主播)
        /// </summary>
        Owner = 5,

        /// <summary>
        /// 房间创建者(主播)
        /// </summary>
        Creator = 5

    }

    public static class RoomGroupTypeExt
    {
        public static string GetName(this RoomGroupType v)
        {
            switch (v)
            {
                case RoomGroupType.Normal:
                    {
                        return "";
                    }
                case RoomGroupType.Guest:
                    {
                        return "游客";
                    }
                case RoomGroupType.TempAdmin:
                    {
                        return "临时房管";
                    }
                case RoomGroupType.RoomAdmin:
                    {
                        return "房管";
                    }
                case RoomGroupType.SuperAdmin:
                    {
                        return "超管";
                    }
                case RoomGroupType.Owner:
                    {
                        return "主播";
                    }
                default:
                    {
                        return "未知";
                    }
            }
        }
    }
}
